package com.hopu.service.Impl;

import com.hopu.mapper.MyempMapper;
import com.hopu.pojo.Myemp;
import com.hopu.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpServiceImpl implements EmpService {

    @Autowired
    private MyempMapper myempMapper;

    @Override
    public Myemp login(String ename, String epsw) {
        return myempMapper.login(ename,epsw);
    }

    @Override
    public List<Myemp> findAll(Integer eflag) {
        return myempMapper.findAll(eflag);
    }

    @Override
    public Integer falsedelete(Integer eid, Integer eflag) {
        return myempMapper.falsedelete(eid,eflag);
    }

    @Override
    public Integer insertemp(Myemp myemp) {
        return myempMapper.insertemp(myemp);
    }

    @Override
    public Myemp findById(Integer eid) {
        return myempMapper.findById(eid);
    }

    @Override
    public Myemp findByEname(String ename) {
        return myempMapper.findByEname(ename);
    }

    @Override
    public Integer updateEmp(Myemp myemp) {
        return myempMapper.updateEmp(myemp);
    }
}
